/**
 * 代理对象
 *
 * @author ItJianGe
 * @data 2024/8/3 9:31
 */
public class Proxy implements Subject {

    private Subject subject;

    public Proxy(Subject subject) {
        this.subject = subject;
    }

    @Override
    public void doThing() {
        System.out.println("------先做个好吃的------");
        subject.doThing();
        System.out.println("------吃完了就该打扫收拾了------");
    }
}
